﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDAL;

namespace Factory
{
    /// <summary>
    /// 数据访问层工厂，用于获取相应的数据访问层对象
    /// 使用Abstract Factory设计模式+Facace设计模式+反射机制+缓存机制设计
    /// </summary>
    public sealed class DALFactory
    {
        public static IUserRemarkDAL CreateUserRemarkDAL()
        {
            return (IUserRemarkDAL)DependencyInjector.GetDALObject("UserRemarkDAL");
        }
    }
}
